package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.PointMsg;
import cn.wolfcode.trip.base.query.QueryObject;
import java.util.List;

public interface PointMsgMapper {
    int deleteByPrimaryKey(Long id);

    Long insert(PointMsg record);

    PointMsg selectByPrimaryKey(Long id);

    int updateByPrimaryKey(PointMsg record);

    List<PointMsg> selectForList(QueryObject qo);

    /**
     * 根据用户Id查询用户的未读信息数量
     * @param userId
     * @return
     */
    Integer getCount(Long userId);

    /**
     * 根据用户ID更新该用户消息为已读
     * @param userId
     */
    void updateReadByUserId(Long userId);
}